/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package io.lckgroup.modules.lck.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.lckgroup.common.utils.R;
import io.lckgroup.modules.lck.entity.MerchantUserEntity;
import io.lckgroup.modules.lck.form.AppLoginForm;

import java.util.Map;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface MerchantUserService extends IService<MerchantUserEntity> {

    MerchantUserEntity queryByMobile(String mobile);

    /**
     * 用户登录
     * @param form    登录表单
     * @return 返回用户ID
     */
    R login(AppLoginForm form);

    /**
     * app 用户修改密码
     * @params params {oldpwd=123456, newpwd=222222, confirmpwd=222222,userId =123}
     * @return Map<String, Object>
     */
    Map<String, Object> updatePassword(Map<String, Object> params);

    void resetPassword(Long userId);

}
